package models

import (
	"time"
)

type MenuNotice struct {
	ID          uint      `gorm:"primaryKey" json:"id"`
	Title       string    `gorm:"size:100;not null" json:"title"`
	Content     string    `gorm:"type:text" json:"content"`
	Publisher   string    `gorm:"size:50;default:'系统管理员'" json:"publisher"`
	IsTop       bool      `gorm:"default:false" json:"isTop"`
	Status      bool      `gorm:"default:true" json:"status"`
	PublishTime time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"publishTime"`
	UpdateTime  time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"updateTime"`
}
